package com.taocares.mobile.base.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dongqun
 * @version 1.0
 * @description 类的功能描述
 * @date 2019/11/6 20:04
 */
@RestController
public class FooController {
    @Value("${server.port}")
    public String port;
    @Value("${foo}")
    public String foo;

    @GetMapping("/foo")
    public String test(){
        return foo+":"+port;
    }
}
